package com.zhouyu.mysql;

import net.sf.jsqlparser.statement.alter.Alter;
import net.sf.jsqlparser.statement.create.table.CreateTable;
import net.sf.jsqlparser.statement.insert.Insert;
import net.sf.jsqlparser.statement.select.PlainSelect;

/**
 * 大都督周瑜（我的微信: dadudu6789）
 */
public class SqlExecutor {

    private HaInnodb haInnodb = new HaInnodb();

    public void createTable(CreateTable createTableStatement) {
        haInnodb.createTable(createTableStatement);
    }

    public void insert(Insert insertStatement) {
        haInnodb.insert(insertStatement);
    }

    public void select(PlainSelect plainSelectStatement) {
        haInnodb.select_one(plainSelectStatement);
    }

    public void alter(Alter alterStatement) {
        haInnodb.alter(alterStatement);
    }
}
